<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Ajax Demo</title>
    <style>
        .fs {
            width: 45%;
        }
    </style>
</head>
<body>
    <div>
        <h1>The AJAX02 Page</h1>
        <fieldset class="fs">
            <legend>异步请求 - 表单</legend>
            <form>
                <input type="text" name="name" id="nameId" onblur="doCheck()"
                onfocus="doClear()"/>
                <button onclick="doSave()">Save</button>
            </form>
            <span id="result"></span>
        </fieldset>
    </div>
    <script>
        function doSave() {

        }

        function doClear() {
            document.getElementById("result").innerHTML='';
        }

        function doCheck() {

        }
    </script>
</body>
</html>